package com.zkyc.framework.common.pool;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class GlobalThreadPoolExecutor {

    public static final int cores = Runtime.getRuntime().availableProcessors();

    public static ThreadPoolExecutor poolExecutor = new ThreadPoolExecutor(cores, cores * 2, 60L,
            TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(1000), new ThreadPoolExecutor.AbortPolicy());
}
